package com.zwk.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zwk.common.utils.PageUtils;
import com.zwk.common.utils.R;
import com.zwk.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.zwk.gulimall.product.entity.AttrEntity;
import com.zwk.gulimall.product.entity.AttrGroupEntity;
import com.zwk.gulimall.product.vo.GroupWithAttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zhuwenkang
 * @email zhuwenkang@gmail.com
 * @date 2022-12-30 22:47:10
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long categoryId);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Long attrgroupId,Map<String,Object> params);

    boolean removeRelation(List<AttrAttrgroupRelationEntity> relationEntity);

    List<GroupWithAttrVo> groupWithAttrByCatId(Long catelogId);
}

